{% extends 'motherSet.html' %}

{% block test %}
    {% for headlines in headline_list %}
{#        {% for headlines in headline_list.object_list %}#}
        <div style="border:solid 1px yellow;">
            <tr>
                <td class="vertical_top">
                    <input type="checkbox" name="" value="" class="" disabled/>
                </td>
                <td>
                    <div>
                        <div>
                            <a href="{{ headlines.post_link }}" target="_blank" style="text-decoration: none;">
                            <span>
                                <h3>
                                    <span id="" class="">
                                        {% if headlines.emotion == 0 %}
                                            中性
                                        {% endif %}
                                        {% if headlines.emotion == 1 %}
                                            正面
                                        {% endif %}
                                        {% if headlines.emotion == 2 %}
                                            负面
                                        {% endif %}
                                    </span>
                                    <span id="" class="">
                                        {{ headlines.headline }}
                                    </span>

                                </h3>
                            </span>
                            </a>
                        </div>
                        <div>
                            <a href="{{ headlines.post_link }}" target="_blank" style="text-decoration: none;">
                                <p>{{ headlines.abstract|truncatewords:5 }}</p>
                            </a>
                            <a target="_blank" href="https://www.baidu.com/" style="text-decoration: none;">

                            </a>
                        </div>

                        <div class="tdBt">
                        <span>
                            主题词：国际（2） 经济（1） 成果（1） 社会（1）
                        </span>

                    <span class="source">
              			来源：微博

                    </span>
                            <span class="fr">{{ headlines.post_date|date:"Y-m-d" }}</span>
                        </div>
                    </div>
                </td>
            </tr>
        </div>
    {% endfor %}
{#    <div>#}
{#        {% if headline_list.has_previous %}#}
{#            <h3>#}
{#                <a style="text-decoration: none;" href="/sort1/?page={{ headline_list.previous_page_number }}">上一页</a>#}
{#            </h3>#}
{#        {% endif %}#}
{#        {% if headline_list.has_next %}#}
{#            <h3>#}
{#                <a style="text-decoration: none;" href="/sort1/?page={{ headline_list.next_page_number }}">下一页</a>#}
{#            </h3>#}
{#        {% endif %}#}
{#    </div>#}

{% endblock %}